<?php

## 执行登录功能
require_once 'global.php';

// 接收参数
$tel = addslashes(trim($_POST['tel']));

$passwd = addslashes($_POST['passwd']);

login($tel, $passwd, "user");

header("Location:../index.php");
